from PIL import Image
import numpy as np

img = Image.open('allColors.png')
npImage = np.array(img)
print(npImage)

col1 = []
for i in range(1, 1225):
    # if npImage[i][15][0] != npImage[i - 1][15][0] and npImage[i][15][1] != npImage[i - 1][15][1] \
    #         and npImage[i][15][2] != npImage[i - 1][15][2]\
    #         and npImage[i][15][3] != 0:
    if npImage[i][15][3] == 255 and (list(npImage[i][15]) in col1) == False:
        col1.append(list(npImage[i][15]))
print(len(col1), col1)
